#include "element1d.h"
#include <cassert>

using namespace CoreLib::MathLib ; 
Element1D::Element1D(const double & val) : m_Value ( val  ) 
{
}
Element1D::~ Element1D()
{
    int i = 0 ; 
}

bool Element1D::operator ==(const Element1D & rhs)
{
    return value() == rhs.value();
}

const double Element1D::value() const
{
    return m_Value ; 
}

Element1D & Element1D::operator =(const Element1D & rhs)
{
    return operator=(rhs.value());
    
}
Element1D& Element1D::operator =(const double & val)
{
    m_Value = val ; 
    return *this ; 
}

void Element1D::setValue(const double & value)
{
    operator =(value );
}

